import httpbase from "@/util/http.js";
//获取data
export const nowpagedata = (pageNum,zcname,id) => {
  return httpbase({
    url: '/admin/page',
    method:'GET',
    params:{
      pageNum,
      zcname,
      id
    }
  })
}



//删除方法
export const deluserdata = (id) => {
  return httpbase({
    url: `/admin/${id}`,
    method: 'delete',
  })
}

//权限编辑
export const edituserdata = (obj) => {
  return httpbase({
    url: '/admin/',
    method: 'put',
    data: {
      obj
    },
  })
 
}
